package com.bdqn.service;

import com.bdqn.pojo.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import javax.management.relation.Role;
import java.util.List;

public interface IUserService {
    public User login(String usrName, String usrPassword);
    public void saveUser(User user);//适用新增和修改
    public void deleteUser(Long usrId);
    public User getUser(Long usrId);
//按条件进行分页查询(动态SQL)
public Page<User> findUsers(String usrName, Long roleId, Pageable pageable);


}
